package com.kuaimacode.kframework.mybatis.models.index;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author anzy
 * @date 2019/06/12
 */
@TableName("notice")
@Data
public class Notice implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	@ApiModelProperty(value = "公告标题")
	@TableField("title")
	private String title;
	@ApiModelProperty(value = "公告内容")
	@TableField("content")
	private String content;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "开始日期")
	@TableField("begin_time")
	private Date beginTime;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "截止日期")
	@TableField("end_time")
	private Date endTime;
	@ApiModelProperty(value = "创建时间")
	@TableField("create_at")
	private Date createAt;
	@ApiModelProperty(value = "创建人")
	@TableField("create_by")
	private Long createBy;
	@ApiModelProperty(value = "所属分站")
	@TableField("agent_id")
	private String agentId;
}
